<script type="text/javascript" src="/js/admin/comment.js"> </script>
 <table>
      <thead>
        <tr>
          <th colspan="8">
            Comment Manger 
          </th>
        </tr>
      </thead>

      <tbody >
        <tr>
          <th style="width:5%">Index</th>
          <th style="width:18%">Article</th>
          <th style="width:20%">Content</th>
          <th style="width:8%">Name</th>
          <th style="width:14%">Email</th>
          <th style="width:14%">Website</th>
          <th style="width:14%">Time</th>
          <th style="width:7%">Operator</th>
        </tr>
        
        <#list comments as com>
		<tr>
          <td style="width:5%">${com_index+1+(page-1)*15}</td>
          <td style="width:18%">${com.article.title}</td>
          <td style="width:20%">${com.content}</td>
          <td style="width:8%">${com.name}</td>
          <td style="width:14%">${com.email}</td>
          <td style="width:14%">${com.website}</td>
          <td style="width:14%">${com.createdTime?string("yyyy-MM-dd HH:mm:ss")} </td>
          <td style="width:7%"><button class="delete" onclick="delComment('${com.name}','${com.id}')" >删除</button></td>
        </tr>

        </#list>

		</tbody>

    </table>
  <br />

<table width="100%">
	<tbody>
	<tr>
        <th id="hdrPlus" class="small" align="right">
        	<#if (page-1>0)>
        	<button onclick="pre('${page-1}')">上一页</button>
        	</#if>
        	&nbsp共${catSize}条&nbsp&nbsp
        	<#if ((page)<((catSize/15)?ceiling))>
        	<button onclick="next('${page+1}')">下一页</button>
        	</#if>
        	
        </th>
    </tr>
	</tbody>
</table>

